home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Tele / G / Geoport ARA 1.2 - redial / GTA - Best (redial) < prev    next >
Encoding:
Text File  |  1993-10-07  |  3.5 KB  |  217 lines  |  [mlts/slnk]

  1. ! "Geoport Telecom Adapter AppleTalk Remote Access Script - 10/06/93 - V1.2"
  2. ! "By John Pamplin - JHP II or ValueMac (AOL) or ValueMac@aol.com (Internet)"
  3. @ORIGINATE
  4. @ANSWER
  5. !
  6. @LABEL 1
  7. !
  8. ! first recall the factory configuration
  9. !
  10. matchclr
  11. settries 0
  12. matchstr 1 3 "OK\13\10"
  13. @LABEL 2
  14. write "AT&F\13"
  15. matchread 30
  16. inctries
  17. iftries 2 59
  18. jump 2
  19. !
  20. ! Next, Set up the configuration: Echo off
  21. !
  22. @LABEL 3
  23. matchstr 1 4 "OK\13\10"
  24. write "ATE0\13"
  25. matchread 30
  26. jump 59
  27. !
  28. ! Next, turn off error control
  29. !
  30. @LABEL 4
  31. matchstr 1 5 "OK\13\10"
  32. matchstr 2 5 "ERROR\13\10"
  33. write "AT&Q0S11=60\13"
  34. matchread 30
  35. !
  36. ! If speaker on flag is true, jump to label 8.  Else turn off the speaker
  37. !
  38. @LABEL 5
  39. matchclr
  40. ifstr 2 8 "1"
  41. matchstr 1 8 "OK\13\10"
  42. write "ATM0\13"
  43. matchread 30
  44. jump 59
  45. !
  46. ! The modem is ready.  So enable answering, or originate a call
  47. !
  48. @LABEL 8
  49. ifANSWER 30
  50. note "Dialing ^1" 3
  51. write "ATS0=0DT^1\13"
  52. !
  53. @LABEL 9
  54. matchstr 1 11 "CONNECT 1200\13\10"
  55. matchstr 2 12 "CONNECT 2400\13\10"
  56. matchstr 3 13 "CONNECT 4800\13\10"
  57. matchstr 4 14 "CONNECT 7200\13\10"
  58. matchstr 5 15 "CONNECT 9600\13\10"
  59. matchstr 6 16 "CONNECT 12000\13\10"
  60. matchstr 7 17 "CONNECT 14400\13\10"
  61. matchstr 8 50 "NO CARRIER\13\10"
  62. matchstr 9 50 "ERROR\13\10"
  63. matchstr 10 52 "NO DIALTONE\13\10"
  64. matchstr 11 51 "MODEM IN USE\13\10"
  65. matchstr 12 53 "BUSY\13\10"
  66. matchstr 13 54 "NO ANSWER\13\10"
  67. matchread 700
  68. jump 59
  69. !
  70. @LABEL 11
  71. note "Communicating at 1200 bps." 2
  72. CommunicatingAt 1200
  73. jump 18
  74. !
  75. @LABEL 12
  76. note "Communicating at 2400 bps." 2
  77. CommunicatingAt 2400
  78. jump 18
  79. !
  80. @LABEL 13
  81. note "Communicating at 4800 bps." 2
  82. CommunicatingAt 4800
  83. jump 18
  84. !
  85. @LABEL 14
  86. note "Communicating at 7200 bps." 2
  87. CommunicatingAt 7200
  88. jump 18
  89. !
  90. @LABEL 15
  91. note "Communicating at 9600 bps." 2
  92. CommunicatingAt 9600
  93. jump 18
  94. !
  95. @LABEL 16
  96. note "Communicating at 12.0 kbps." 2
  97. CommunicatingAt 12000
  98. jump 18
  99. !
  100. @LABEL 17
  101. note "Communicating at 14.4 kbps." 2
  102. CommunicatingAt 14400
  103. !
  104. @LABEL 18
  105. ifANSWER 19
  106. pause 30
  107. exit 0
  108. @LABEL 19
  109. userhook 1
  110. exit 0
  111. !
  112. ! @ANSWER
  113. ! Set up the modem to answer
  114. @LABEL 30
  115. write "ATS0=1\13"
  116. matchstr 1 31 "OK\13\10"
  117. matchread 30
  118. jump 59
  119. !
  120. @LABEL 31
  121. matchstr 1  32 "RING\13\10"
  122. matchstr 2  11 "CONNECT 1200\13\10"
  123. matchstr 3  12 "CONNECT 2400\13\10"
  124. matchstr 4  13 "CONNECT 4800\13\10"
  125. matchstr 5  14 "CONNECT 7200\13\10"
  126. matchstr 6  15 "CONNECT 9600\13\10"
  127. matchstr 7  16 "CONNECT 12000\13\10"
  128. matchstr 8  17 "CONNECT 14400\13\10"
  129. matchstr 9  50 "NO CARRIER\13\10"
  130. matchstr 10 50 "ERROR\13\10"
  131. matchstr 11 51 "MODEM IN USE\13\10"
  132. matchstr 12 52 "NO DIALTONE\13\10"
  133. matchstr 13 53 "BUSY\13\10"
  134. matchstr 14 54 "NO ANSWER\13\10"
  135. matchread 700
  136. jump 31
  137. !
  138. @LABEL 32
  139. note "Answering phone…" 2
  140. jump 31
  141. !
  142. ! 50: error messages
  143. !
  144. @LABEL 50
  145. exit -6021
  146. !
  147. @LABEL 51
  148. note "The Express Modem is currently in use by another application…" 2
  149. exit -6020
  150. !
  151. @LABEL 52
  152. exit -6020
  153. !
  154. @LABEL 53
  155. note "Busy.  Redialing in 10 seconds..."
  156. pause 80
  157. jump 8
  158. exit -6022
  159. !
  160. @LABEL 54
  161. exit -6023
  162. !
  163. @LABEL 59
  164. exit -6019
  165. !
  166. ! Hang up the modem
  167. !
  168. @HANGUP
  169. @LABEL 60
  170. settries 0
  171. @LABEL 61
  172. write "ATH0\13"
  173. matchclr
  174. matchstr 1 64 "OK\13\10"
  175. matchstr 2 63 "NO CARRIER\13\10"
  176. matchstr 3 64 "ERROR\13\10"
  177. matchread 15
  178. inctries
  179. iftries 3 64
  180. ! no response, try escape sequence
  181. write "+++"
  182. matchclr
  183. matchstr 1 62 "OK\13\10"
  184. matchread 18
  185. !
  186. ! No response from modem
  187. !
  188. jump 61
  189. !
  190. @LABEL 62
  191. matchclr
  192. matchstr 1 64 "OK\13\10"
  193. matchstr 2 63 "NO CARRIER\13\10"
  194. write "ATH0\13"
  195. matchread 50
  196. jump 61
  197. !
  198. @LABEL 63
  199. pause 45
  200. flush
  201. !
  202. ! Recall the factory settings
  203. !
  204. @LABEL 64
  205. matchclr
  206. matchstr 1 65 "OK\13\10"
  207. write "AT&F\13"
  208. matchread 30
  209. !
  210. @LABEL 65
  211. matchstr 1 66 "OK\13\10"
  212. write "ATS0=0\13"
  213. matchread 30
  214. !
  215. @LABEL 66
  216. exit 0
  217.